﻿@model LastoRevival.Website.Models.EditSiteUserSettingsModel


@{ 
	this.AddIndexBreadCrumb();
	this.AddUserListBreadCrumb();
	this.AddCurrentBreadCrumb(Model.Username);
}

<div id="edit-settings-form-container">
    <form id="edit-settings-form" action="@Url.Action("EditSettings", "User")" method="post">
		@Html.Hidden("UserID", Model.UserID)
		
		<span id="edit-showsignatures">
			<label for="showsignatures">@LanguageLoader.GetWord("ShowSignaturesLabel")</label>
			@{ var showsigs = Model.ShowSignatures ? "checked='checked'" : ""; }
			<input type="checkbox" name="ShowSignatures" id="ShowSignatures" value="true" @showsigs />
		</span>

		<span id="edit-smileysbydefault">
			<label for="smileysbydefault">@LanguageLoader.GetWord("EnableSmileysByDefaultLabel")</label>
			@{ var smileys = Model.SmileysByDefault ? "checked='checked'" : ""; }
			<input type="checkbox" name="SmileysByDefault" id="SmileysByDefault" value="true" @smileys />
		</span>
                        
		<span id="edit-returntolistafterposting">
			<label for="returntolistafterposting">@LanguageLoader.GetWord("ReturnToListAfterPostingLabel")</label>
			@{ var returnToList = Model.ReturnToListAfterPosting ? "checked='checked'" : ""; }
			<input type="checkbox" name="returntolistafterposting" id="returntolistafterposting" value="true" @returnToList />
		</span>
		
		
		<span id="edit-collapsethreshold">
			<label for="collapsethreshold">@LanguageLoader.GetWord("CollapseThresholdLabel")</label>
			<input type="text" name="collapsethreshold" id="collapsethreshold" value="@Model.CollapseThreshold" />
			<label class="tip">@LanguageLoader.GetWord("CollapseHelpTip")</label>
		</span>

		<span id="edit-timeoffset">
			<label for="timeoffset">@LanguageLoader.GetWord("TimeOffsetLabel")</label>
			@Html.GetTimezoneOffsetList("timeoffset", "timeoffset", Model.TimeOffset)
		</span>
		
		<span id="edit-theme">
			<label for="theme">@LanguageLoader.GetWord("ThemeLabel")</label>
			@Html.GetAvailableThemesList("theme", "theme", Model.Theme)
		</span>		
                        
		<span id="buttons" class="button-container">
			<input type="submit" value="@LanguageLoader.GetWord("UpdateButtonLabel")" onclick="" />
		</span>
                        
    </form>    
</div>